package JUnitTest;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Test;

import Model.Notification;
import DBAccess.DBAccess;


public class NotificationTest {
	DBAccess access = new DBAccess();
	Date today = new Date();
	Notification noti = new Notification(1, 123, "Notification", today);
	@Test
	public void getUserIDTest(){
		assertEquals(noti.getUserID(),1);
	}
	
	public void setUserIDTest(){
		noti.setUserID(2);
		assertEquals(noti.getUserID(),2);
	}
	
	public void getFromIDTest(){
		assertEquals(noti.getFromID(), 123);
	}
	
	public void setFromIDTest(){
		noti.setFromID(144);
		assertEquals(noti.getFromID(), 144);
	}
	
	public void getMsgTest(){
		assertEquals(noti.getMsg(), "Notification");
	}
	
	public void setMsgTest(){
		noti.setMsg("Noti2");
		assertEquals(noti.getMsg(), "Noti2");
		
	}
	
	public void getDate(){
		assertEquals(noti.getDate(), today);
	}
	
	public void setDate(){

	}
	
}